package cn.lumora.core.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author Lumora
 * 错误码枚举
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor(force = true)
public enum ErrorCode {
    SUCCESS(0, "success"),
    PARAM_ERROR(400, "参数错误"),
    NOT_FOUND(404, "未找到"),
    NOT_LOGIN(401, "未登录"),
    NOT_AUTHORIZED(403, "未授权"),
    SERVER_ERROR(500, "服务器错误"),
    USER_NOT_EXIST(10001, "用户不存在"),
    USER_PASSWORD_ERROR(10002, "用户密码错误"),
    USER_EXIST(10003, "用户已存在"),

    USER_NOT_LOGIN(10004, "用户未登录"),
    USER_NOT_AUTHORIZED(10005, "用户未授权"),
    USER_NOT_AUTHENTICATED(10006, "用户未认证"),
    USER_NOT_ACTIVATED(10007, "用户未激活"),
    USER_NOT_VERIFIED(10008, "用户未验证");

    private final int code;
    private final String message;


}
